import { request } from "@/utils/axios"

/**
 * 登录接口
 */
export function LoginApi(data) {
    return request(
        {
            url: "/user/login",
            method: "POST",
            data: data
        }
    );
}

/**
 * 注册
 */
export function RegApi(data) {
    return request(
        {
            url: "/user/register",
            method: "POST",
            data: data
        }
    );
}


/**
 * 修改密码
 */
export function UpdatePasswordApi(data) {
    return request(
        {
            url: "/user/updatePassword",
            method: "PUT",
            data: data
        }
    );
}

